<template>

  <div class="part-one part-four">
    <div class="head">
      <div class="topZi">
        <div class="date font1">{{ time }}</div>
        <div class="title font1">四川省网上群众工作平台月报</div>
        <div class="department">川网传媒·麻辣社区 | 群众呼声 - 四川省网上群众工作平台</div>
      </div>
    </div>
    <div class="mybody">
      <div class="top-img-box">
        <img src="../../assets/image/mybody-top.png">
      </div>
      <div class="main">
        <div class="title">
          群众呼声
          <span class="desc">·省直部门办理质效如何？</span>
        </div>

        <div class="main-department">
          <div class="title-warp">
            <div class="sjl">收件量</div>
            <div class="bjl">办结量</div>
            <div class="asbjl">按时办结率</div>
          </div>

          <div class="lable" v-for="(item,idx) in shengzhidata">
            <div :class="['name',item.name.length>8?'fsmall':'']">{{ item.name }}</div>
            <div class="pross">
              <div class="bar1 anti" :style="`--bar-value:${item.sdzb}%;`" v-if="item.sdzb>60">{{ item.shoudao }}</div>
              <div class="bar1 anti fontleft1" :style="`--bar-value:${item.sdzb}%;`" v-else>
                <span>{{ item.shoudao }}</span>
              </div>
            </div>
            <div class="pross">
              <div class="bar2 anti" :style="`--bar-value:${item.bjzb}%`" v-if="item.bjzb>60">{{ item.banjie }}</div>
              <div class="bar2 anti fontleft2" :style="`--bar-value:${item.bjzb}%;`" v-else>
                <span>{{ item.banjie }}</span>
              </div>
            </div>
            <div class="data">{{ item.banjielv }}%</div>
          </div>

        </div>

        <div class="zhuyi-wrap">
          <div class="desc">*注：</div>
          <div class="zhuyi">收到量=当月新增群众诉求数量；办结量=在当月办结的诉求数量；按时办结量=在留言办理时效内按期办结的诉求数量。</div>
        </div>

        <div class="middle">
          <div class="title2" style="font-size:28px;width:80%;font-weight:bolder">
            省直部门（单位）
            <span class="desc">留言办理满意率排行</span>
          </div>
          <div class="paihang-list">
            <div class="paihang-item">
              <span class="name">{{shengzhiMY[0].name}}</span>
              <div class="img-box">
                <img src="../../assets/image/1.png">
              </div>
            </div>
            <div class="paihang-item">
              <span class="name">{{shengzhiMY[1].name}}</span>
              <div class="img-box">
                <img src="../../assets/image/2.png">
              </div>
            </div>
            <div class="paihang-item">
              <span class="name">{{shengzhiMY[2].name}}</span>
              <div class="img-box">
                <img src="../../assets/image/3.png">
              </div>
            </div>
            <div class="paihang-item">
              <span class="name">{{shengzhiMY[3].name}}</span>
              <div class="img-box">
                <img src="../../assets/image/4.png">
              </div>
            </div>
            <div class="paihang-item">
              <span class="name">{{shengzhiMY[4].name}}</span>
              <div class="img-box">
                <img src="../../assets/image/5.png">
              </div>
            </div>
          </div>
        </div>
        <div class="other">
          <div class="title3">其他为</div>
          <div class="line"></div>
          <div class="other-list">
            <div class="other-item" v-for="(item,idx) in shengzhiMY" v-if="idx>4">{{ item.name }}</div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer">
      <div class="background-img-box">
        <img src="../../assets/image/footer-background.png" alt="麻辣社区">
      </div>
      <div class="logo-box">
        <img src="../../assets/image/footer-LOGO.png" alt="麻辣社区">
      </div>
    </div>
  </div>

</template>
<script>

export default {
  name: 'Shengzhi',
  data() {
    return {}
  },
  props: ['shengzhidata','time','shengzhiMY'],
  methods: {},
  mounted() {

  }
}
</script>
<style lang="scss" scoped>
@import '../../assets/fonts.css';
@import '../../assets/yuebao/css.css';
@import '../../assets/yuebao/media.css';
.main .lable .name{
  font-size:20px;
  width: 25%;
  &.fsmall{
    font-size:16px;
  }
}
.main .lable .anti{
  height:25px;
  border-bottom-left-radius: 25px;
  border-top-left-radius: 25px;
  line-height: 25px;
}
.bar2.anti{
  border-bottom-right-radius: 25px;
  border-top-right-radius: 25px;
}
.fontleft1 {
  height: 25px;
  position: relative;
  span {
    position: absolute;
    left: -27px;
    color: #4d8df6;
  }
}
.fontleft2 {
  height: 25px;
  position: relative;
  span {
    position: absolute;
    right: -25px;
    color: #ec6e2f;
  }
}
</style>
